package com.ld.wms.business.material.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 物料实例表，具体的物料想信息
 * </p>
 *
 * @author wangfeng
 * @since 2025-02-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("material_example")
@Schema(description = "物料实例表，具体的物料信息")
public class MaterialExampleModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "物料类型")
    private Long materialTypeId;

    @Schema(description = "唯一编号")
    private String code;

    @Schema(description = "casCode")
    private String casCode;

    @Schema(description = "类型名称")
    private String name;

    @Schema(description = "状态：1正常，1异常。2库存不足，3作废")
    private Integer status;

    @Schema(description = "库存")
    private Integer inventory;

    @Schema(description = "是否删除：0否，1是")
    private Integer delFlag;

    @Schema(description = "创建人id")
    private Long createBy;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新人")
    private Long updateBy;

    @Schema(description = "更新时间")
    private Date updateTime;


    public static final String ID = "id";

    public static final String CODE = "code";

    public static final String NAME = "name";

}
